export function useBoolean(flag = false) {
  const boolean = ref(flag)
  const toggleBoolean = (toggleFlag = undefined) => {
    if (toggleFlag !== undefined) {
      boolean.value = toggleFlag
      return
    }
    boolean.value = !boolean.value
  }
  return [boolean, toggleBoolean]
}
